<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //对折纸厚度0.0001米，珠峰8848米
        var paper = 0.0001;
        var mountain = 8848;
        for (var i = 1; i >= 0; i++) {
            paper = paper * 2;
            console.log('对折纸' + i + '次没有超过珠峰' + paper);
            if (paper > mountain) {
                break;
            }
        }
        console.log('对折纸' + i + '超过珠峰' + paper)
    </script>
</body>

</html>